package day1026.dem3;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @program: fanxing
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-10-26 19:51
 **/
public class Test {
}
/**
 * @program: fanxing
 * @description:
 * @author: 诸葛龙辰
 **/
@Target(value = {ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@interface Pig{
    int id() default 001;
    String[] hobby();
    Zhu zhu();
    Sb  sb();
}

/**
 * @author: 诸葛龙辰
 **/
@interface Sb{
    String value();
    String name()default "";
}
@Pig(hobby = {"吃喝","拉撒"},zhu = Zhu.AGE, sb = @Sb("黑猪"))
class Students{

}

enum Zhu{
    TYPE,NAME,AGE
}